laravel belongstomany prevent duplicates attach

38

$cart->items()->syncWithoutDetaching([$item->id]);

Comments

Submit
0 Comments